package com.room2.model;

import java.util.List;

import androidx.lifecycle.LiveData;
import androidx.room.Dao;
import androidx.room.Delete;
import androidx.room.Insert;
import androidx.room.Query;
import androidx.room.Update;

@Dao
public interface ScoreDao {

    @Insert
    void insert(Score... scores);

    @Update
    void update(Score... scores);

    @Delete
    void delete(Score... scores);

    @Query("select * from t_score")
    LiveData<List<Score>> getAllData();

    @Query("delete from t_score")
    void clear();
}
